<!DOCTYPE html>
<!-- saved from url=(0034)./agentBillRecord -->
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span>交易明细</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/agentCenter')}" class="iconfont back"></a></header>

    <div data-v-1558f0ab="" class="main" s="[object Object]">
        <div data-v-1558f0ab="" class="textMore dataType"><em data-v-1558f0ab=""></em> <i data-v-1558f0ab=""
                                                                                            class="iconfont"></i></div>
        <div data-v-1558f0ab="" class="searchBtn">
            <div data-v-1558f0ab="" class="searchCon">
                <input data-v-1558f0ab="" type="text" placeholder="下级投注查询" class="proxySearch" value="{$zhanghao}">
            </div>
            <a data-v-1558f0ab="" id="submitBtn" onclick="sousuo()">
                <div data-v-1558f0ab="" class="submitTouch">
                    <i data-v-1558f0ab=""  class="iconfont"></i>
                </div>
            </a>
        </div>
        <div data-v-1558f0ab="" id="leftTabBox">
            <div data-v-1558f0ab="" class="hd">
                <ul data-v-1558f0ab="">
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 0){echo 'on';} ?>"><a class="userSearch active" data-id="0" onclick="xuanze1(this.id)" id="quan" style="text-decoration:none">所有类型</a></li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 1){echo 'on';} ?>"><a data-id="1" class="userSearch lx active"  onclick="xuanze1(this.id)" id="yi" >充值记录</a></li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 2){echo 'on';} ?>"><a data-id="2" class="userSearch lx active"  onclick="xuanze1(this.id)" id="wei">提现记录</a></li>
                </ul>
            </div>
            <div data-v-1558f0ab="" class="bd dontSelect">
                <?php if(!empty($arr)){?>
                <div data-v-1558f0ab="" class="scrollBox">
                    <div data-v-1558f0ab="" class="touchScroll">
                        <foreach name="arr" item="v">
                            <div data-v-1558f0ab="">
                                <a data-v-1558f0ab="" class="active">
                                    <div data-v-1558f0ab="">
                                        <p data-v-1558f0ab="">{$v.zhanghao}
                                            <span data-v-1558f0ab="">￥
                                                <?php if($v["type"]=='1'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='2'){echo sprintf('%.2f',$v['zhi_money']);}
                                          elseif($v["type"]=='3'){echo sprintf('%.2f',$v['zhi_money']);}
                                          elseif($v["type"]=='4'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='5'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='6'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='7'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='8'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='9'){echo sprintf('%.2f',$v['zhi_money']);}
                                          elseif($v["type"]=='10'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='11'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='12'){echo sprintf('%.2f',$v['shou_money']);}
                                          elseif($v["type"]=='13'){echo sprintf('%.2f',$v['shou_money']);} ; ?>
                                            </span>
                                        </p>
                                        <span data-v-1558f0ab=""><?php echo date("Y-m-d H:i:s",$v["ctime"]);?></span>
                                    </div>
                                    <strong data-v-1558f0ab="" class="OutMoney">
                                        <?php if($v["type"]=='1'){echo "充值入款";}
                                          elseif($v["type"]=='2'){echo "提现扣款";}
                                          elseif($v["type"]=='3'){echo "投注扣款";}
                                          elseif($v["type"]=='4'){echo "投注返点";}
                                          elseif($v["type"]=='5'){echo "奖金派送";}
                                          elseif($v["type"]=='6'){echo "提现退回";}
                                          elseif($v["type"]=='7'){echo "活动礼金";}
                                          elseif($v["type"]=='8'){echo "追号停止";}
                                          elseif($v["type"]=='9'){echo "误存提出";}
                                          elseif($v["type"]=='10'){echo "人工存入";}
                                          elseif($v["type"]=='11'){echo "其他优惠";}
                                          elseif($v["type"]=='12'){echo "投注撤单";}
                                          elseif($v["type"]=='13'){echo "代理明细";} ; ?>
                                    </strong>
                                </a>
                                <div data-v-1558f0ab="" class="hr1px"></div>
                            </div> <!----> <!----> <!---->
                        </foreach>
                        <div data-v-1558f0ab="" class="msg noMore">已显示<?php if($shijian==1){echo "今天";}elseif($shijian==2){echo "昨天";}elseif($shijian==3){echo "七天";} ?>全部记录</div>
                    </div>
                </div>
                <?php }else{?>
                <div data-v-1558f0ab="" class="scrollBox">
                    <div data-v-1558f0ab="" class="touchScroll">
                        <div data-v-1558f0ab="" class="fullPageMsg">
                            <div data-v-1558f0ab="" class="fullPageIcon iconfont"></div>
                            <p data-v-1558f0ab="">暂无记录</p>
                        </div>
                    </div>
                </div>
                <?php } ?>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
            </div>
        </div>
        <div class="_problemBox" data-v-1558f0ab="" style="display: none;">
            <div class="blackBg"></div>
            <div class="moreLayer">
                <ul>
                    <li class="<?php if($shijian == 1){echo 'on';} ?> times"><a data-value="1" class="userSearch  active"  onclick="xuanze(this.id)" id="jintian" >今天</a></li>
                    <li class="<?php if($shijian == 2){echo 'on';} ?> times"><a data-value="2" class="userSearch  active "  onclick="xuanze(this.id)" id="zuotian" >昨天</a></li>
                    <li class="<?php if($shijian == 3){echo 'on';} ?> times"><a data-value="3" class="userSearch  active "  onclick="xuanze(this.id)" id="qitian" >七天</a></li>
                </ul>
                <ul>
                    <li><a>取消</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!--验证账号弹出框 begion-->
    <div id="layermbox" class="layermbox layermbox0 layermshow" index="1" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">·您搜索的会员账号不能为空·</div>
                    <div class="layermbtn"><span type="1">确定</span></div>
                </div>
            </div>
        </div>
    </div>
    <!--验证账号弹出框 end-->
    <!--验证账号弹出框 begion-->
    <div id="layermbox2" class="layermbox layermbox0 layermshow" index="1" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">·您搜索的会员账号不存在·</div>
                    <div class="layermbtn"><span type="1">确定</span></div>
                </div>
            </div>
        </div>
    </div>
    <!--验证账号弹出框 end-->
</div>

<script>
    $(function(){
        $(".moreLayer ul:nth-of-type(1) li").each(function () {
            if($(this).hasClass("on")){
                $(".dataType em").text($(this).text());
            }
        })
    })
    $(".layermbtn").click(function(){
        $("#layermbox2").hide();
        $("#layermbox").hide();
    });

    $(".dataType").click(function () {
        $("._problemBox").show();
    });
    $("._problemBox ul:first-of-type li").click(function () {
        var TXT = $(this).text();
        $(".dataType em").text(TXT);
    })
    $("._problemBox ul li").click(function () {
        $("._problemBox").hide();
    })

    $("#leftTabBox li").click(function () {
        $(this).addClass("on").siblings("li").removeClass("on");
    })

    function sousuo() {
        var zhang = $(".proxySearch").val();
        var zhanghao = zhang.replace(/\s/g,"");
        if(zhanghao==''){
            $("#layermbox").show();
            return false;
        }
        $.ajax({
            type: "POST",
            url: "{:U('Users/zhanghao')}",
            data: {'zhanghao': zhanghao},
            success: function (dat) {
                if (dat == 0) {
                    $("#layermbox2").show();
                }else {
                    window.location.href = "/Users/agentBillRecord/zhanghao/" + zhanghao;
                }
            }
        });
    }

    //类型搜索 和 时间搜索

    //时间的 传值
    function xuanze(a){

        var shijian = $("#"+a).attr("data-value");
        var leixing = $(".lx.on").find("a").attr("data-id");
        window.location.href="/Users/agentBillRecord/shijian/"+shijian+"/leixing/"+leixing;
    }
    function xuanze1(b){
        var shijian = $(".times.on").find("a").attr("data-value");
        var leixing = $("#"+b).attr("data-id");

        window.location.href="/Users/agentBillRecord/shijian/"+shijian+"/leixing/"+leixing;
    }


</script>
</body>
</html>